package ooday02;

public class Animal {
    String name;
    int age;
    String colour;
    Animal(String name,int age,String colour){
        this.age=age;
        this.colour=colour;
        this.name=name;
    }
    void drink(){//喝水
        System.out.println(colour+age+"岁的"+name+"在喝水");
    }
    void eat(){//吃饭
        System.out.println(colour+age+"岁的"+name+"在喝水");
    }

}
